CXX=g++
#CFLAGS=-g `wx-config --cxxflags` -O3 -c
CFLAGS=-Wall -g `wx-config --cxxflags` -O3 -c
LDFLAGS=`wx-config --libs`

SOURCES=main.cpp muut.cpp commonfunctions.cpp circuit.cpp board.cpp
OBJECTS=$(SOURCES:.cpp=.o)
EXECUTABLE=jukumagic

all: jukumagic

#jukumagic: $(SOURCES) $(EXECUTABLE)

$(EXECUTABLE): $(OBJECTS)
	$(CXX) $(OBJECTS) $(LDFLAGS) -o $(EXECUTABLE)

.cpp.o:
	$(CXX) $(CFLAGS) $< -o $@

clean:
	rm -f $(OBJECTS) $(EXECUTABLE)

